package ltd.jdsoft.cute.perm.exception;

import ltd.jdsoft.cute.spring.web.exception.ExceptionEnum;

public enum PermExceptionEnum implements ExceptionEnum {

  USERNAME_OR_PASSWORD_ERROR(50000, "用户名或密码错误");

  private int code;
  private String message;

  private PermExceptionEnum(int code, String message) {
    this.code = code;
    this.message = message;
  }

  @Override
  public int getCode() {
    return code;
  }

  @Override
  public String getMessage() {
    return message;
  }
}
